<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Gadget</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">PureBasic - Gadget</font></b></p>

<p><b>Overview</b></p><blockquote>





The Gadgets in PureBasic (in other languages also called "controls" or "widgets") 
are a generic name for all the interface components: 
button, combobox, listview, panels, ... This library is OS independent and 
uses the real OS Graphical User Interface (GUI) components. 
<br>
<br>
Before using gadgets there will be normally opened a <a href="../window/openwindow.html">window</a> first, 
furthermore there will be often used <a href="../menu/index.html">menus</a>, <a href="../toolbar/index.html">toolbars</a> 
and <a href="../statusbar/index.html">statusbars</a> when creating graphical user interfaces. 
<br>
<br>
The functions that create a new gadget return the new gadget number (called #Gadget in this library) 
if <font color="#924B72">#PB_Any</font> was used to create the gadget. If a static number was given to identify 
the gadget instead of <font color="#924B72">#PB_Any</font>, then the functions return the OS identifier for the 
created Gadget. 

These OS identifiers (or also called handles) can be used for other PureBasic functions, as well for 
WinAPI functions like SendMessage_() etc. Look at the chapter <a href="../reference/handles.html">Handles and Numbers</a> 
in the reference manual for more information. 


If you want to create GUI dialogs with automatic layout support take a look 
at the <a href="../dialog/index.html">dialog</a> library. 

   

  <p>
  <center>
  <table WIDTH="96%" BORDER=0>
  <caption> <b>Overview of all gadgets:</b> </caption>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_buttongadget.png"> <a href="../gadget/buttongadget.html"><u>ButtonGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_buttonimagegadget.png"> <a href="../gadget/buttonimagegadget.html"><u>ButtonImageGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_calendargadget.png"> <a href="../gadget/calendargadget.html"><u>CalendarGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_canvasgadget.png"> <a href="../gadget/canvasgadget.html"><u>CanvasGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_checkboxgadget.png"> <a href="../gadget/checkboxgadget.html"><u>CheckBoxGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_comboboxgadget.png"> <a href="../gadget/comboboxgadget.html"><u>ComboBoxGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_containergadget.png"> <a href="../gadget/containergadget.html"><u>ContainerGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_dategadget.png"> <a href="../gadget/dategadget.html"><u>DateGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_editorgadget.png"> <a href="../gadget/editorgadget.html"><u>EditorGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_explorercombogadget.png"> <a href="../gadget/explorercombogadget.html"><u>ExplorerComboGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_explorerlistgadget.png"> <a href="../gadget/explorerlistgadget.html"><u>ExplorerListGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_explorertreegadget.png"> <a href="../gadget/explorertreegadget.html"><u>ExplorerTreeGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_framegadget.png"> <a href="../gadget/framegadget.html"><u>FrameGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_hyperlinkgadget.png"> <a href="../gadget/hyperlinkgadget.html"><u>HyperLinkGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_ipaddressgadget.png"> <a href="../gadget/ipaddressgadget.html"><u>IPAddressGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_imagegadget.png"> <a href="../gadget/imagegadget.html"><u>ImageGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_listicongadget.png"> <a href="../gadget/listicongadget.html"><u>ListIconGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_listviewgadget.png"> <a href="../gadget/listviewgadget.html"><u>ListViewGadget</u></a></td>
  </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_mdigadget.png"> <a href="../gadget/mdigadget.html"><u>MDIGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_openglgadget.png"> <a href="../gadget/openglgadget.html"><u>OpenGLGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_optiongadget.png"> <a href="../gadget/optiongadget.html"><u>OptionGadget</u></a></td>
      </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_panelgadget.png"> <a href="../gadget/panelgadget.html"><u>PanelGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_progressbargadget.png"> <a href="../gadget/progressbargadget.html"><u>ProgressBarGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_scrollareagadget.png"> <a href="../gadget/scrollareagadget.html"><u>ScrollAreaGadget</u></a></td>   
      </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_scrollbargadget.png"> <a href="../gadget/scrollbargadget.html"><u>ScrollBarGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_shortcutgadget.png"> <a href="../gadget/shortcutgadget.html"><u>ShortcutGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_spingadget.png"> <a href="../gadget/spingadget.html"><u>SpinGadget</u></a></td>
      </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_splittergadget.png"> <a href="../gadget/splittergadget.html"><u>SplitterGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_stringgadget.png"> <a href="../gadget/stringgadget.html"><u>StringGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_textgadget.png"> <a href="../gadget/textgadget.html"><u>TextGadget</u></a></td>
     </tr>
  <tr>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_trackbargadget.png"> <a href="../gadget/trackbargadget.html"><u>TrackBarGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_treegadget.png"> <a href="../gadget/treegadget.html"><u>TreeGadget</u></a></td>
    <td vAlign="center" nowrap><img src="../HelpPictures/vd_webgadget.png"> <a href="../gadget/webgadget.html"><u>WebGadget</u></a></td>
  </tr>
  </table>
  </center>


</blockquote><p><b>Command Index</b><blockquote>
<a href="addgadgetcolumn.html">AddGadgetColumn</a><br>
<a href="addgadgetitem.html">AddGadgetItem</a><br>
<a href="bindgadgetevent.html">BindGadgetEvent</a><br>
<a href="buttongadget.html">ButtonGadget</a><br>
<a href="buttonimagegadget.html">ButtonImageGadget</a><br>
<a href="calendargadget.html">CalendarGadget</a><br>
<a href="canvasgadget.html">CanvasGadget</a><br>
<a href="canvasoutput.html">CanvasOutput</a><br>
<a href="changelisticongadgetdisplay.html">ChangeListIconGadgetDisplay</a> (deprecated)<br>
<a href="checkboxgadget.html">CheckBoxGadget</a><br>
<a href="cleargadgetitemlist.html">ClearGadgetItemList</a> (deprecated)<br>
<a href="cleargadgetitems.html">ClearGadgetItems</a><br>
<a href="closegadgetlist.html">CloseGadgetList</a><br>
<a href="comboboxgadget.html">ComboBoxGadget</a><br>
<a href="containergadget.html">ContainerGadget</a><br>
<a href="countgadgetitems.html">CountGadgetItems</a><br>
<a href="creategadgetlist.html">CreateGadgetList</a> (deprecated)<br>
<a href="dategadget.html">DateGadget</a><br>
<a href="disablegadget.html">DisableGadget</a><br>
<a href="editorgadget.html">EditorGadget</a><br>
<a href="explorercombogadget.html">ExplorerComboGadget</a><br>
<a href="explorerlistgadget.html">ExplorerListGadget</a><br>
<a href="explorertreegadget.html">ExplorerTreeGadget</a><br>
<a href="framegadget.html">FrameGadget</a><br>
<a href="freegadget.html">FreeGadget</a><br>
<a href="gadgetheight.html">GadgetHeight</a><br>
<a href="gadgetid.html">GadgetID</a><br>
<a href="gadgetitemid.html">GadgetItemID</a><br>
<a href="gadgettooltip.html">GadgetToolTip</a><br>
<a href="gadgettype.html">GadgetType</a><br>
<a href="gadgetwidth.html">GadgetWidth</a><br>
<a href="gadgetx.html">GadgetX</a><br>
<a href="gadgety.html">GadgetY</a><br>
<a href="getactivegadget.html">GetActiveGadget</a><br>
<a href="getgadgetattribute.html">GetGadgetAttribute</a><br>
<a href="getgadgetcolor.html">GetGadgetColor</a><br>
<a href="getgadgetdata.html">GetGadgetData</a><br>
<a href="getgadgetfont.html">GetGadgetFont</a><br>
<a href="getgadgetitemattribute.html">GetGadgetItemAttribute</a><br>
<a href="getgadgetitemcolor.html">GetGadgetItemColor</a><br>
<a href="getgadgetitemdata.html">GetGadgetItemData</a><br>
<a href="getgadgetitemstate.html">GetGadgetItemState</a><br>
<a href="getgadgetitemtext.html">GetGadgetItemText</a><br>
<a href="getgadgetstate.html">GetGadgetState</a><br>
<a href="getgadgettext.html">GetGadgetText</a><br>
<a href="hidegadget.html">HideGadget</a><br>
<a href="hyperlinkgadget.html">HyperLinkGadget</a><br>
<a href="ipaddressgadget.html">IPAddressGadget</a><br>
<a href="imagegadget.html">ImageGadget</a><br>
<a href="isgadget.html">IsGadget</a><br>
<a href="listicongadget.html">ListIconGadget</a><br>
<a href="listviewgadget.html">ListViewGadget</a><br>
<a href="mdigadget.html">MDIGadget</a><br>
<a href="openglgadget.html">OpenGLGadget</a><br>
<a href="opengadgetlist.html">OpenGadgetList</a><br>
<a href="optiongadget.html">OptionGadget</a><br>
<a href="panelgadget.html">PanelGadget</a><br>
<a href="progressbargadget.html">ProgressBarGadget</a><br>
<a href="removegadgetcolumn.html">RemoveGadgetColumn</a><br>
<a href="removegadgetitem.html">RemoveGadgetItem</a><br>
<a href="resizegadget.html">ResizeGadget</a><br>
<a href="scrollareagadget.html">ScrollAreaGadget</a><br>
<a href="scrollbargadget.html">ScrollBarGadget</a><br>
<a href="setactivegadget.html">SetActiveGadget</a><br>
<a href="setgadgetattribute.html">SetGadgetAttribute</a><br>
<a href="setgadgetcolor.html">SetGadgetColor</a><br>
<a href="setgadgetdata.html">SetGadgetData</a><br>
<a href="setgadgetfont.html">SetGadgetFont</a><br>
<a href="setgadgetitemattribute.html">SetGadgetItemAttribute</a><br>
<a href="setgadgetitemcolor.html">SetGadgetItemColor</a><br>
<a href="setgadgetitemdata.html">SetGadgetItemData</a><br>
<a href="setgadgetitemimage.html">SetGadgetItemImage</a><br>
<a href="setgadgetitemstate.html">SetGadgetItemState</a><br>
<a href="setgadgetitemtext.html">SetGadgetItemText</a><br>
<a href="setgadgetstate.html">SetGadgetState</a><br>
<a href="setgadgettext.html">SetGadgetText</a><br>
<a href="shortcutgadget.html">ShortcutGadget</a><br>
<a href="spingadget.html">SpinGadget</a><br>
<a href="splittergadget.html">SplitterGadget</a><br>
<a href="stringgadget.html">StringGadget</a><br>
<a href="textgadget.html">TextGadget</a><br>
<a href="trackbargadget.html">TrackBarGadget</a><br>
<a href="treegadget.html">TreeGadget</a><br>
<a href="unbindgadgetevent.html">UnbindGadgetEvent</a><br>
<a href="usegadgetlist.html">UseGadgetList</a><br>
<a href="webgadget.html">WebGadget</a><br>
<a href="webgadgetpath.html">WebGadgetPath</a> (deprecated)<br>
</blockquote></p>

<p><b>示例</b></p><blockquote>
<a href="../Examples/Gadget.pb.html">Gadget.pb</a>

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center><a href=../reference/reference.html>Reference Manual - Index</a></center>


</body></html>